using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace AjGenesisStudio.Panels
{
    public partial class OutputPanel : Fireball.Docking.DockableWindow
    {
        public OutputPanel()
        {
            InitializeComponent();
        }

        private static OutputPanel instance;

        public static OutputPanel Instance
        {
            get {
                if (instance == null)
                    instance = new OutputPanel();
                return instance; 
            }
        }

        public void LogLine(string text)
        {
            Log(text + "\r\n");
        }

        public void Log(string text)
        {
            output.AppendText(text);
            output.SelectionStart = output.TextLength;
        }

        public void ClearOutput()
        {
            output.Clear();
        }
    }
}